using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DomainLayer.Data.Entities;

namespace Infrastructure.Data.Mapping
{
	public class PMS_RoleNestMappingMap : EntityTypeConfiguration<PMS_RoleNestMapping>
	{
		public PMS_RoleNestMappingMap()
		{
			// Primary Key
			this.HasKey(t => t.Id);

			// Properties
			// Table & Column Mappings
			this.ToTable("PMS_RoleNestMapping");
			this.Property(t => t.Id).HasColumnName("Id");
			this.Property(t => t.ParentRoleId).HasColumnName("ParentRoleId");
			this.Property(t => t.ChildRoleId).HasColumnName("ChildRoleId");
			this.Property(t => t.IsDelete).HasColumnName("IsDelete");
			this.Property(t => t.CreateBy).HasColumnName("CreateBy");
			this.Property(t => t.CreateTime).HasColumnName("CreateTime");
			this.Property(t => t.UpdateBy).HasColumnName("UpdateBy");
			this.Property(t => t.UpdateTime).HasColumnName("UpdateTime");
		}
	}
}

